package com.aizhixin.lab.post.repository;

import com.aizhixin.lab.post.entity.Business;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BusinessRepository extends JpaRepository<Business,String> {
    Business findByIdAndDeleteFlag(String id,Integer deleteFlag);


    List<Business> findByDeleteFlagOrderByCreatedDateDesc(Integer deleteFlag);
}
